<?php
namespace app\validate;

use think\Validate;

class BusinessclueValidate extends Validate
{
	protected $rule = [
			'name'      =>  'require',
			'company_name'      => 'require',
			'address'      => 'require',
			//'status'       =>  'require|number|in:1,2',
			// 'star_num'       =>  'require|number|in:0,1,2,3,4,5',
			// 'content'     => 'require|max:150'
	];
	
	protected $message  =   [
			'name.require' => '线索名称不能为空',
			'company_name.require' => '企业名称不能为空',
			'address.require' => '地址不能为空',
// 			'status.require' => '线索状态不能为空',
// 			'status.number' => '线索状态为整数',
// 			'status.in' => '线索状态取值错误',
			// 'star_num.require' => '总体评价不能为空', 
			// 'star_num.number' => '总体评价为整数',
			// 'star_num.in' => '总体评价取值错误',
			// 'content.require'   => '评论内容不能为空',
			// 'content.max' => '评论内容在150个字之内'
	];
	
}